home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text;
-
- class StyleContext$FontKey {
- private String family;
- private int style;
- private int size;
-
- public StyleContext$FontKey(String var1, int var2, int var3) {
- this.setValue(var1, var2, var3);
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof StyleContext$FontKey)) {
- return false;
- } else {
- StyleContext$FontKey var2 = (StyleContext$FontKey)var1;
- return this.size == var2.size && this.style == var2.style && this.family == var2.family;
- }
- }
-
- public int hashCode() {
- return this.family.hashCode() ^ this.style ^ this.size;
- }
-
- public void setValue(String var1, int var2, int var3) {
- this.family = var1 != null ? var1.intern() : null;
- this.style = var2;
- this.size = var3;
- }
- }
-